

package Othello;


import javax.swing.*;
/* using swing, JFrame, setTitle, set DefaultCloseOperation*/

public class MainFrame extends JFrame{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 3551952336395493198L;

	public MainFrame(){
		
		setTitle("OTHELLO"); // frame title.
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);	// when close the Frame, the program close with the action. 
		GamePanel p1 = new GamePanel(); // Need make for Game
		//StatusPanel st = new StatusPanel();
	 
		getContentPane().add(p1);
	   // getContentPane().add(st);
	    // the function get game information from game panel,
		//and add game frame from the panel.
		pack();
		
	}
	
	public static void main(String[] args)
	{
		
		MainFrame apl = new MainFrame();
		apl.setSize(1021,846);
		apl.setVisible(true);		
		
	}
	

}
